import request from '@/utils/request'

export const login = data => request({ url: '/auth/login', method: 'POST', data })

export const getInfo = () => request({ url: '/auth/info', method: 'GET' })

export const logout = () => request({ url: '/auth/logout', method: 'POST' })

export const getRoutes = () => request({ url: '/auth/routes', method: 'GET' })
